#include "Node.h"
#include "..\base\Engine.h"

namespace ds {

Node::Node(const std::string& name,const std::string& materialName,bool orthogonal) 
	: m_Name(name) 
	, m_Orthogonal(orthogonal) {
		LOGC(logINFO,"Node") << "creating new node " << m_Name << " - orthogonal " << orthogonal << " material " << materialName;
	m_MaterialHandle = gEngine->getResourceManager().findByName(materialName.c_str(),RS_MATERIAL);
}

void Node::setMaterialName(const std::string& materialName) {
	m_MaterialHandle = gEngine->getResourceManager().findByName(materialName.c_str(),RS_MATERIAL);
}

};
